package com.woniu.addresses.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 欸嘿
 * @since 2024年05月29日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("city")
public class City implements Serializable {

    private static final long serialVersionUID = 1L;
    /*
        城市编码
     */
    @ApiModelProperty(name = "code",value = "城市编码")
    @TableId(value = "code", type = IdType.AUTO)
    private String code;
    /*
        城市名字
     */
    @ApiModelProperty(name = "name",value = "城市名字")
    @TableField("name")
    private String name;
    /*
        省份编码
     */
    @ApiModelProperty(name = "provinceCode",value = "省份编码")
    @TableField("provinceCode")
    private String provinceCode;


}
